.PHONY : all
all : libstatic.a t

t : t.cc
	g++ -o $@ $^ -Wl,-E -L. -lstatic

libstatic.a : static.cc
	g++ -c $^
	ar crv libstatic.a static.o

.PHONY : clean
clean :
	rm static.o libstatic.a t
